﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using FluentNHibernate.Mapping;

namespace RM.Entities.Data.Map
{
    public class TestMap : ClassMap<Test>
    {

        public TestMap()
        {
            Id(x => x.Id).Not.Nullable();
            Map(x => x.Duration);
            Map(x => x.StartDateTime).Not.Nullable();
            Map(x => x.EndDateTime).Not.Nullable();
            Map(x => x.SolutionFile).Length(2147483647);
            References(x => x.Candidate).Not.LazyLoad();
            References(x => x.Question).Not.LazyLoad();
            Map(x => x.CreatedDate).Not.Nullable();
            Map(x => x.ModifiedDate).Not.Nullable();
            References(x => x.CreatedBy);
            References(x => x.ModifiedBy);
        }
    }
}
